package com.ayf.payment.game.api.service.platform;

import com.ayf.payment.game.api.dto.platform.PaymentProductAndRateDTO;
import com.ayf.payment.game.api.dto.platform.PaymentProductDTO;
import com.ayf.payment.game.api.entity.platform.PaymentProduct;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

public interface PaymentProductService{

    List<PaymentProductDTO> selectAll();

    @Transactional
    void updateProductStatus(PaymentProductDTO paymentProductDTO);

    void updatePaymentProduct(PaymentProductDTO paymentProductDTO);

    PaymentProductDTO getPaymentProduct(int paymentProductId);

    List<PaymentProductDTO> updateSerialNumber(PaymentProductDTO paymentProductDTO);

    PaymentProductAndRateDTO getPaymentProductAndRateDTO(int paymentProductId);

    PaymentProductAndRateDTO getPaymentMerchantProductAndRateDTO(int merchantId, int paymentProductId);

    Integer countProductAndMerchant(int merchantId,String payCode);

    /**
     * 获取首选冲值产品
     * @return
     */
    List<PaymentProduct> getFirstPaymentProduct();

}
